package model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the SKILL database table.
 * 
 */
@Entity
public class Skill implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="SKILL_ID")
	private String skillId;

	@Column(name="SKILL_DESCRIPTION")
	private String skillDescription;

	//bi-directional many-to-many association to Employee
	@ManyToMany
	@JoinTable(
		name="EMPLOYEE_SKILLS"
		, joinColumns={
			@JoinColumn(name="SKILL_ID")
			}
		, inverseJoinColumns={
			@JoinColumn(name="EMPLOYEE_ID")
			}
		)
	private List<Employee> employees;

	public Skill() {
	}

	public String getSkillId() {
		return this.skillId;
	}

	public void setSkillId(String skillId) {
		this.skillId = skillId;
	}

	public String getSkillDescription() {
		return this.skillDescription;
	}

	public void setSkillDescription(String skillDescription) {
		this.skillDescription = skillDescription;
	}

	public List<Employee> getEmployees() {
		return this.employees;
	}

	public void setEmployees(List<Employee> employees) {
		this.employees = employees;
	}

	
}